package com.k2data.app.k2bq.skylar360;

import com.k2data.app.k2bq.skylar360.common.GlobalVariables;
import com.k2data.app.k2bq.skylar360.request.RequestConfUtil;
import com.k2data.app.k2bq.skylar360.utils.OkHttpUtils;
import okhttp3.OkHttpClient;

import java.io.IOException;

public class test {
    public static void main(String[] args) {
        try {
            OkHttpClient client = new OkHttpClient();
            GlobalVariables.ACCESS_TOKEN = OkHttpUtils.send(client, RequestConfUtil.getTokenRequest()).getString("access_token");
            System.out.println(OkHttpUtils.send(client, RequestConfUtil.getRequest()));
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
